import request from '@/utils/request'

// 查询客户应收期初列表
export function listBizCustomerOpening (query) {
  return request({
    url: '/biz/bizCustomerOpening/list',
    method: 'get',
    params: query
  })
}

// 查询客户应收期初详细
export function getBizCustomerOpening (id) {
  return request({
    url: '/biz/bizCustomerOpening/' + id,
    method: 'get'
  })
}

// 新增客户应收期初
export function addBizCustomerOpening (data) {
  return request({
    url: '/biz/bizCustomerOpening',
    method: 'post',
    data: data
  })
}

// 修改客户应收期初
export function updateBizCustomerOpening (data) {
  return request({
    url: '/biz/bizCustomerOpening',
    method: 'put',
    data: data
  })
}

// 删除客户应收期初
export function delBizCustomerOpening (id) {
  return request({
    url: '/biz/bizCustomerOpening/' + id,
    method: 'delete'
  })
}

//客户应收期初审核
export function auditBizCustomerOpening (id) {
  return request({
    url: '/biz/bizCustomerOpening/audit/' + id,
    method: 'get'
  })
}

//客户应收期初反审核
export function doAuditBizCustomerOpening (id) {
  return request({
    url: '/biz/bizCustomerOpening/doAudit/' + id,
    method: 'get'
  })
}

